//
// Created by Administrator on 2025-07-24.
//

#pragma once
#include "../common.h"
#include "MysqlRecord.h"

class MysqlData
{
public:
    std::vector<std::map<std::string, std::string> > &data()
    {
        return _data;
    }

    size_t size()
    {
        return _data.size();
    }

    bool empty() const
    {
        return _data.empty();
    }

    MysqlRecord operator[](size_t i)
    {
        return MysqlRecord(_data[i]);
    }

protected:
    std::vector<std::map<std::string, std::string> > _data;
};
